package com.bingxue.edu.management.education.model.query;

import com.bingxue.edu.common.enums.TermEnum;
import com.bingxue.edu.framework.mybatis.query.Query;
import com.bingxue.edu.framework.mybatis.query.QueryType;
import com.bingxue.edu.management.education.model.entity.exam.Exam;
import com.mybatisflex.annotation.TableRef;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@TableRef(Exam.class)
@Schema(description = "考试成绩查询条件")
public class ExamQuery {

    @Schema(description = "名称")
    @Query(type = QueryType.LIKE)
    private String name;

    @Schema(description = "年份")
    private Integer classYear;

    @Schema(description = "学季")
    @Query(type = QueryType.IN)
    private TermEnum term;

    @Schema(description = "年级")
    private String grade;

    @Schema(description = "科目")
    private String subject;
}
